@charset "utf-8";
@import "reset";
@import "common";
@mixin RN_i{
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto;
    overflow: hidden;
}
@mixin RN_span{
    display: block;
    font-size: 12px;
    color: #dddddd;
    margin: 0 auto;
    text-align: center;
    margin-top: 6px;
}
@mixin RN_hover_span{
   position: absolute;
   right: 32px;
   z-index: 1000;
   background-color: rgba(0,0,0,.5);
   width: 116px;
   height: 0px;
   overflow: hidden;
   line-height: 50px;
   border-radius: 4px;
   text-align: center;
   color: #FFFFFF;
   font-size: 12px;
   transition: all,.2s;
   opacity: 0;
   a{
       display: inline;
       color: #00FFFF;
       transition: all,.2s;
       &:hover{
           opacity: 0.7;
       }
   }
}
@mixin PS_one{
    display: inline-block;
    height: 315px;
    position: relative;
    overflow: hidden;
    &:hover{
        &:before{
            top: 0;
        }
        &:after{
            bottom: 0;
        }
        .hover_content{
            height: 120px;
            transform: rotate(0deg);
        }
    }
    &:before,&:after {
        content: "";
        width: 360px;
        height: 360px;
        background-color: rgba(150, 50, 100, 0.5);
        position: absolute;
        transition: all 0.5s ease 0.3s;
    }
    
    &:before {
        right: 0;
        top: -200px;
        transform-origin: 100% 0%;
        transform: rotate(55deg) translateX(60px);
    }
    &:after {
        left: 0;
        bottom: -200px;
        transform-origin: 0 100%;
        transform: rotate(55deg) translateX(-60px);
    }
    img{
        height: 100%;
        text-align: center;
    }
    .hover_content{
        width: 100%;
        height: 0px;
        transform: rotate(45deg);
        position: absolute;
        top: 0;
        bottom: 0;
        margin: auto 0;
        background-color: rgba(0, 0, 0, 0.5);
        color: #FFFFFF;
        text-align: center;
        overflow: hidden;
        z-index: 100;
        transition: all .5s;
        h3{
            font-size: 18px;
            height: 45px;
            line-height: 45px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.5);
        }
        h4{
            font-size: 16px;
            font-weight: normal;
            height: 36px;
            line-height: 36px;
            margin-bottom: 1px;
        }
        p{
            font-size: 16px;   
            a{
                color: #FFFFFF;
                &:hover{
                    opacity: 0.7;
                }
            }
        }
    }
}
@mixin img_width{
    overflow: hidden;
    img{
        width: 100%;
        vertical-align: middle;
    }
}
@mixin PS_two_font{
    padding-bottom: 14px;
    h3,p{
        width: 275px;
        margin-left: 20px;
    }
    h3{
        font-size: 14px;
        font-weight: normal;
        line-height: 28px;
        height: 28px;
        margin-top: 6px;
        @include line;
    }
    p{
        font-size: 12px;
        line-height: 20px;
        height: 40px;
        @include lines;
    }
}
@mixin PD_two_animation{
    position: relative;
    &:before{
        content: "";
        display: block;
        background-color: #FFFFFF;
        opacity: 0;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        transition: opacity .5s;
    }
    &:hover{
        animation: hover_glint 1s ease-out infinite alternate;
        &:before{
            opacity: .4;
        }
    }  
}
@mixin floor_one_animation{
    &:hover{
        animation: magnify .8s ease-out infinite alternate;
    }
}
@mixin floor_two_animation{
    &:hover{
        animation: rotate .8s ease-out infinite alternate;
    }
}
@keyframes hover_glint{
    0%{
        box-shadow: 0 0 10px #66FF66;
    }
    100%{
        box-shadow: 0 0 30px #38ebc3;
    }
}
@keyframes magnify{
    0%{
        box-shadow: 0 0 5px #e51a8d;
        transform: scale(1);
    }
    100%{
        box-shadow: 0 0 20px #e024de;
        transform: scale(1.2);
    }
}
@keyframes rotate{
    0%{
        opacity: 0;
        box-shadow: 0 0 5px #e51a8d;
        background-color: #007AFF;
        transform: rotate(10deg);
    }
    100%{
        opacity: 1;
        box-shadow: 0 0 20px #e024de;
        transform: rotate(-10deg);
    }
}


.web{
    width: 100%;
    position: relative;
    .right_nav{
        position: fixed;
        right: 0;
        width: 38px;
        height: 100%;
        background-color: #565656;
        color: white;
        padding-top: 70px;
        z-index: 1001;
        .nav_wrap_01{
            padding-bottom: 26px;
            section{
                position: relative;
                margin-bottom: 26px;
                &:last-of-type{
                    margin-bottom: 0;
                }
                &:hover{
                    .hover_span{
                        height: 50px;
                        opacity: 1;
                    }
                }
                .hover_span{
                    @include RN_hover_span;
                }
                a{
                    display: block;
                    i{
                        @include RN_i;
                    }
                    .user{
                        background: url(../img/user.png) no-repeat center;
                    }
                    .brand{
                        background: url(../img/brand.png) no-repeat center;
                    }
                    .collection{
                        background: url(../img/collection.png) no-repeat center;
                    }
                    .browse{
                        background: url(../img/browse.png) no-repeat center;
                    }
                    span{
                        @include RN_span;
                        width: 30px;
                    }
                }
            }
            
        }
        .nav_wrap_02{
            padding: 8px 0;
            border-top: 1px solid #4c4c4c;
            border-bottom: 1px solid #4c4c4c;
            position: relative;
            &:hover{
                .hover_span{
                    height: 50px;
                    opacity: 1;
                }
            }
            .hover_span{
                @include RN_hover_span;
                top: 20px;
            }
            i{
                @include RN_i;
                background: url(../img/cart.png) no-repeat center;
            }
            span{
                @include RN_span;
                width: 14px;
            }
            .pro_number{
                width: 100%;
                color: #de0202;
            }
        }
        .nav_wrap_03{
            margin-top: 50px;
            section{
                position: relative;
                &:last-of-type{
                    position: fixed;
                    bottom: 0;
                    right: 4px;
                }
                &:hover{
                    .hover_span{
                        height: 50px;
                        opacity: 1;
                    }
                }
                .hover_span{
                    @include RN_hover_span;
                }
                a{
                    display: block;
                    i{
                        @include RN_i;
                    }
                    .feedback{
                        background: url(../img/feedback.png) no-repeat center;
                    }
                    .top{
                        background: url(../img/top.png) no-repeat center;
                    }
                    span{
                        @include RN_span;
                        width: 30px;
                    }
                }
            }
        }
    }
    .left{
        padding-right: 38px;
    }
    header,.setion,footer{
        width: 100%;
    }
    .main_content{
        width: 1300px;
        margin: 0 4px;
        background: #f1f1f1;
        .content_wrap{
            width: 100%;
            margin: 0 auto;
            .pro_show_one{
                padding: 52px 0;
                font-size: 0;
                .show_one{
                    @include PS_one;
                    width: 310px;
                }
                .show_two{
                    @include PS_one;
                    width: 640px;
                    margin: 0 20px;
                }
                .show_three{
                    @include PS_one;
                    width: 310px;
                }
            }
            .brand_show{
                font-size: 0;
                li{
                    text-align: center;
                    width: 129px;
                    border-right: 1px solid #b5b5b5;
                    display: inline-block;
                    transition: all .5s;
                    &:hover{
                        background-color: #313131;
                        &:last-child{
                            i{
                                background: url(../img/brand_change_hover.png) no-repeat center;
                            }
                        }
                        i{
                            background: url(../img/GROHE_hover.png) no-repeat center;
                        }
                        span{
                            color: white;
                        }
                    }
                    i{
                        display: block;
                        width: 131px;
                        height: 55px;
                        background: url(../img/GROHE.png) no-repeat center;
                    }
                    &:last-child{
                        border-right: none;
                        i{
                            background: url(../img/brand_change.png) no-repeat center;
                        }
                        
                    }
                    span{
                        height: 29px;
                        line-height: 29px;
                        display: block;
                        color: #535353;
                        font-size: 14px;
                        margin: 8px 0;
                    }
                }
            }
            .pro_show_two{
                font-size: 0;
                margin: 52px 0 44px;
                .left_show,.right_show{
                    display: inline-block;
                    vertical-align: middle;
                }
                .left_show{
                    margin-right: 20px;
                }
                .left_wrap{
                    width: 315px;
                    background-color: #FFFFFF;
                    display: inline-block;
                    vertical-align: top;
                    margin-right: 10px;
                    @include PS_two_font;
                    section{
                        width: 100%;
                        height: 738px;
                        @include img_width;
                        @include PD_two_animation;
                    }
                }
                .right_wrap{
                    width: 315px;
                    display: inline-block;
                    vertical-align: top;
                    div{
                        background-color: #FFFFFF;
                        @include PS_two_font;
                        margin-bottom: 20px;
                        &:last-child{
                            margin-bottom: 0;
                        }
                        section{
                            width: 100%;
                            @include img_width;
                            @include PD_two_animation;
                        }
                    }
                    
                    
                }
                .center_wrap{
                    @include PS_two_font;
                    background-color: #FFFFFF;
                    section{
                        width: 640px;
                        height: 315px;
                        overflow: hidden;
                        @include PD_two_animation;
                        img{
                            height: 100%;
                            text-align: center;
                        }
                    }
                    
                }
                .left_show .center_wrap{
                    margin-top: 20px;
                }
                .right_show .center_wrap{
                    margin-bottom: 20px;
                }
            }
            .active_adv{
                width: 100%;
                height: 120px;
                @include img_width;
                transition: opacity .5s;
                &:hover{
                    opacity: .7;
                }
            }
            .commodity_floor{
                width: 100%;
                padding-bottom: 52px;
                .floor_one,.floor_two{
                    padding-top: 52px;
                    .title_list{
                        height: 26px;
                        line-height: 26px;
                        border-bottom-width: 1px;
                        border-bottom-style: solid;
                        font-size: 0;
                        h3{
                            display: inline-block;
                            width: 90px;
                            font-size: 14px;
                            text-align: center;
                            color: white;
                        }
                        p{
                            display: inline-block;
                            width: 150px;
                            height: 24px;
                            line-height: 24px;
                            font-size: 12px;
                            border-bottom-width: 2px;
                            border-bottom-style: solid;
                            text-align: center;
                        }
                        ul{
                            float: right;
                            margin-right: 22px;
                            li{
                                display: inline-block;
                                font-size: 12px;
                                margin-right: 20px;
                                transition: all .2s;
                                &:last-child{
                                    margin-right: 0;
                                }
                                a{
                                    color: #535353;
                                }
                            }
                        }
                    }
                    
                }
                .floor_content{
                    width: 100%;
                    font-size: 0;
                    margin-top: 20px;
                    .big_wrap{
                        display: inline-block;
                        width: 260px;
                        vertical-align: top;
                        .img_wrap{
                            width: 100%;
                            height: 350px;
                            overflow: hidden;
                            img{
                                width: 100%;
                                vertical-align: middle;
                            }
                        }
                        .content_wrap{
                            width: 100%;
                            height: 118px;
                            color: white;
                            text-align: center;
                            padding-top: 30px;
                            p:first-child{
                                font-size: 22px;
                                line-height: 22px;
                                margin-bottom: 16px;
                            }
                            p:last-child{
                                font-size: 16px;
                                line-height: 16px;
                            }
                        }
                    }
                    ul{
                        display: inline-block;
                        width: 1040px;
                        vertical-align: top;
                        li{
                            display: inline-block;
                            margin-right: 2px;
                            margin-bottom: 2px;
                            background-color: white;
                            padding-top: 15px;
                            &:nth-child(4n){
                                margin-right: 0;
                            }
                            &:last-child,&:nth-last-child(2),
                            &:nth-last-child(3),&:nth-last-child(4){
                                margin-bottom: 0;
                            }
                            h4,h5{
                                width: 258px;
                                padding-left: 16px;
                            }
                            h4{
                                font-size: 16px;
                                line-height: 16px;
                                height: 16px;
                                @include line;
                                margin-bottom: 12px;
                                color: #535353;
                            }
                            h5{
                                font-size: 12px;
                                line-height: 12px;
                                height: 12px;
                                @include line;
                            }
                            .img_wrap{
                                width: 258px;
                                height: 160px;
                                line-height: 160px;
                                margin-top: 20px;
                                overflow: hidden;
                                text-align: center;
                                img{
                                    vertical-align: middle;
                                }
                            }
                        }
                    }
                }
                .floor_one{
                    .title_list{
                        border-bottom-color: #a5643c;
                        h3{
                            background-color: #a5643c;
                        }
                        p{
                            border-bottom-color: #a5643c;
                        }
                        li:hover a{
                            color: #a5643c;
                        }
                    }
                    .big_wrap .content_wrap{
                        background-color: #a5643c;
                        @include floor_one_animation;
                    }
                    ul li{
                        h5{
                            color: #a5643c;
                        }
                        .img_wrap{
                            @include floor_one_animation;
                        }
                    }
                }
                .floor_two{
                    .title_list{
                        border-bottom-color: #607591;
                        h3{
                            background-color: #607591;
                        }
                        p{
                            border-bottom-color: #607591;
                        }
                        li:hover a{
                            color: #607591;
                        }
                    }
                    .big_wrap .content_wrap{
                        background-color: #607591;
                        @include floor_two_animation;
                    }
                    ul li{
                        h5{
                            color: #607591;
                        }
                        .img_wrap{
                            @include floor_two_animation;
                        }
                    }
                } 
            }
        }
    }
}

